/*
 * Copyright © 2015-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ch.app.test.qianzhiku.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 地磅操作.
 *
 * @author zengtao
 * @since 1.0
 */
public class LoadometerWeighing extends AbstractRecord {

    //1：进场、2：出场、3：串行卸车回磅
    private String ioStatus;

    //车签号
    private String containerNo;
    //始发网点
    private String sourceOrgCode;
    //始发网点（名称冗余）
    private String sourceOrgCodeName;
    //线路CODE
    private String lineCode;
    //线路名称
    private String lineName;
    //车牌号码
    private String carNumber;
    //挂车车厢号
    private String carNumberExtend;
    //流水号
    private String serialNumber;
    //毛重录入（kg）
    private Double roughWeightInput;
    //毛重（kg）
    private Double roughWeight;

    //皮重（kg）
    private Double tareWeight;
    //净重（kg）
    private Double suttleWeight;
    //称重时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date weighingTime;
    //备忘录
    private String memo;
    //称重网点
    private String opOrgCode;
    //称重网点名称
    private String opOrgName;

    private String opUserCode;

    private String opUserName;

    //装车重量   20180426
    private Double loadingWeight;
    //卸车重量  20180426
    private Double unloadingWeight;

    public String getIoStatus() {
        return ioStatus;
    }

    public void setIoStatus(final String ioStatus) {
        this.ioStatus = ioStatus;
    }

    public String getContainerNo() {
        return containerNo;
    }

    public void setContainerNo(final String containerNo) {
        this.containerNo = containerNo;
    }

    public String getSourceOrgCode() {
        return sourceOrgCode;
    }

    public void setSourceOrgCode(final String sourceOrgCode) {
        this.sourceOrgCode = sourceOrgCode;
    }

    public String getSourceOrgCodeName() {
        return sourceOrgCodeName;
    }

    public void setSourceOrgCodeName(final String sourceOrgCodeName) {
        this.sourceOrgCodeName = sourceOrgCodeName;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(final String lineCode) {
        this.lineCode = lineCode;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(final String lineName) {
        this.lineName = lineName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(final String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarNumberExtend() {
        return carNumberExtend;
    }

    public void setCarNumberExtend(final String carNumberExtend) {
        this.carNumberExtend = carNumberExtend;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(final String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Double getRoughWeightInput() {
        return roughWeightInput;
    }

    public void setRoughWeightInput(final Double roughWeightInput) {
        this.roughWeightInput = roughWeightInput;
    }

    public Double getRoughWeight() {
        return roughWeight;
    }

    public void setRoughWeight(final Double roughWeight) {
        this.roughWeight = roughWeight;
    }

    public Double getTareWeight() {
        return tareWeight;
    }

    public void setTareWeight(final Double tareWeight) {
        this.tareWeight = tareWeight;
    }

    public Double getSuttleWeight() {
        return suttleWeight;
    }

    public void setSuttleWeight(final Double suttleWeight) {
        this.suttleWeight = suttleWeight;
    }

    /**
     * @return Date
     */
    public Date getWeighingTime() {
        if (weighingTime == null) {
            return null;
        } else {
            return (Date) weighingTime.clone();
        }
    }

    /**
     * @param weighingTime weighingTime
     */
    public void setWeighingTime(final Date weighingTime) {
        if (weighingTime == null) {
            this.weighingTime = null;
        } else {
            this.weighingTime = (Date) weighingTime.clone();
        }
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(final String memo) {
        this.memo = memo;
    }

    public String getOpOrgCode() {
        return opOrgCode;
    }

    public void setOpOrgCode(final String opOrgCode) {
        this.opOrgCode = opOrgCode;
    }

    public String getOpOrgName() {
        return opOrgName;
    }

    public void setOpOrgName(final String opOrgName) {
        this.opOrgName = opOrgName;
    }

    public String getOpUserCode() {
        return opUserCode;
    }

    public void setOpUserCode(final String opUserCode) {
        this.opUserCode = opUserCode;
    }

    public String getOpUserName() {
        return opUserName;
    }

    public void setOpUserName(final String opUserName) {
        this.opUserName = opUserName;
    }

    public Double getLoadingWeight() {
        return loadingWeight;
    }

    public void setLoadingWeight(final Double loadingWeight) {
        this.loadingWeight = loadingWeight;
    }

    public Double getUnloadingWeight() {
        return unloadingWeight;
    }

    public void setUnloadingWeight(final Double unloadingWeight) {
        this.unloadingWeight = unloadingWeight;
    }


}
